Skip to content

fix: build failed in qt5#313

Merged
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
18202781743:master
Apr 29, 2025
Merged

fix: build failed in qt5#313
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
18202781743:master

Conversation

@18202781743
Copy link
Copy Markdown
Contributor

Changed Q_GLOBAL_STATIC to Q_GLOBAL_STATIC_WITH_ARGS for
OrgDeepinDTKPreference initialization
This modification provides better type safety and clearer syntax for the
complex initialization parameters
The change maintains the same functionality while following Qt's
recommended practices for static initialization

refactor: 更新 DConfig 初始化语法

将 Q_GLOBAL_STATIC 改为 Q_GLOBAL_STATIC_WITH_ARGS 用于
OrgDeepinDTKPreference 初始化
此修改为复杂的初始化参数提供了更好的类型安全性和更清晰的语法
该变更保持了相同的功能,同时遵循 Qt 推荐的静态初始化实践

Changed Q_GLOBAL_STATIC to Q_GLOBAL_STATIC_WITH_ARGS for
OrgDeepinDTKPreference initialization
This modification provides better type safety and clearer syntax for the
complex initialization parameters
The change maintains the same functionality while following Qt's
recommended practices for static initialization

refactor: 更新 DConfig 初始化语法

将 Q_GLOBAL_STATIC 改为 Q_GLOBAL_STATIC_WITH_ARGS 用于
OrgDeepinDTKPreference 初始化
此修改为复杂的初始化参数提供了更好的类型安全性和更清晰的语法
该变更保持了相同的功能,同时遵循 Qt 推荐的静态初始化实践
@18202781743 18202781743 requested review from BLumia and mhduiy April 29, 2025 05:52
@deepin-ci-robot
Copy link
Copy Markdown
Contributor

deepin pr auto review

关键摘要:

  • 使用了宏定义来初始化全局静态对象,确保了代码的简洁性和可维护性。

是否建议立即修改:

  • 否,当前提交的代码没有明显的语法或逻辑错误。
  • 是,建议进行进一步的代码审查,以确保代码风格的一致性,并考虑是否有必要对宏定义进行文档化说明。

其他建议:

  • 确保所有宏定义都有相应的注释,说明其用途和作用范围。
  • 考虑将宏定义的初始化参数提取为常量,以提高代码的可读性和可维护性。
  • 如果DTK_CORE_NAMESPACE::DConfig::globalThread()DTK_CORE_NAMESPACE::DSGApplication::id()的值在代码的其他部分可能会改变,建议使用函数调用而不是直接使用这些值,以保持代码的灵活性。

deepin-ci-robot added a commit to linuxdeepin/dtk6gui that referenced this pull request Apr 29, 2025
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#313
@github-actions
Copy link
Copy Markdown
Contributor

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "src/kernel/dguiapplicationhelper.cpp": [
        {
            "line": "    QString socket_key = \"_d_dtk_single_instance_\";",
            "line_number": 1468,
            "rule": "S106",
            "reason": "Var naming | 2ad926d35b"
        }
    ]
}

@deepin-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, mhduiy

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@18202781743
Copy link
Copy Markdown
Contributor Author

/forcemerge

18202781743 pushed a commit to linuxdeepin/dtk6gui that referenced this pull request Apr 29, 2025
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#313
@deepin-bot
Copy link
Copy Markdown
Contributor

deepin-bot Bot commented Apr 29, 2025

This pr force merged! (status: blocked)

@deepin-bot deepin-bot Bot merged commit decbf72 into linuxdeepin:master Apr 29, 2025
20 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants